package com.uranus.rancher.rancher.beans;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author wei_yzh
 * @since 2018-12-10
 */
public class Rancher extends Model<Rancher> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String url;

    private String accessKey;

    private String secretKey;

    private String region;

    private Date createTime;

    private Date updateTime;

    private String regionEnUs;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRegionEnUs() {
        return regionEnUs;
    }

    public void setRegionEnUs(String regionEnUs) {
        this.regionEnUs = regionEnUs;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Rancher{" +
        "id=" + id +
        ", url=" + url +
        ", accessKey=" + accessKey +
        ", secretKey=" + secretKey +
        ", region=" + region +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", regionEnUs=" + regionEnUs +
        "}";
    }
}
